package STUDENT.NGUYENHUUTHANG.MVC.B2;

public class Models {
	public double Calc(NumberObject objObject) {
		double kq=0;
		if (objObject.getPheptoan().equals("+")) {
			kq = objObject.getA() + objObject.getB();
		}
		if (objObject.getPheptoan().equals("-")) {
			kq = objObject.getA() - objObject.getB();
		}
		if (objObject.getPheptoan().equals("*")) {
			kq = objObject.getA() * objObject.getB();
		}
		if (objObject.getPheptoan().equals("/")) {
			kq = objObject.getA() / objObject.getB();
		}
		return kq;

	}
}
